home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
13
/
6
/
DISK1369.ZIP
/
WSASCII.DOC
< prev
Wrap
Text File
|
1985-04-21
|
3KB
|
86 lines
WSASCII -- WordStar <-> ASCII Converter
Portions Copyright 1985 by Brian Raub
WSASCII converts WordStar files to ASCII, and vice versa. Several
special options allow (and help) you to customize the conversion.
OPTION ACTION
===================== ==================================================
Strip Dot Commands Removes all lines which start with a period, such
(WS->ASCII Only) as .PA or comment lines starting with ..
Expand Tabs Expands tabs to 5 spaces.
(WS->ASCII Only)
Strip leading spaces Removes specified number of leading spaces. Useful
(ASCII->WS Only) for converting a user's manual (with a standard #
of leading spaces on each line) to WS format.
Compress spaces Compresses multiple spaces between words to single
(ASCII->WS Only) space. Used to 'unjustify' text, but can cause
trouble if used on tabular material (see ..HARDEN)
There are two features on the menu to help review a file before you
convert it.
<D>irectory lists the files on the default drive, or at another location
you specify. You may use wildcards.
<V>iew lets you review the contents of an ASCII file, so that you can,
for example, decide how many leading spaces to delete. You may use the
<V>iew command on WS files, but the visual display will be garbled and
incomplete. The <V>iew command displays 23 lines of text at a time, or
fewer if the lines are longer than 80 characters each. <V>iew includes
an 'indent character counter' at the bottom of each screen of text.
While your file is processed, WSASCII displays a running count of lines
and characters processed -- from both source and destination files. The
unequal counts reflect the effects of your chosen options.
..HARDEN -- if placed in a ASCII file before conversion, will force hard
carriage returns until ..SOFTEN is encountered. These two commands will
help you to maintain hard line endings for tables, or other places you
need to maintain the hard carriage return format.
In every file that is converted from ASCII->WS, there will be several
added lines at the top which explain how to reform the file.
Here's how WSASCII works:
ASCII->WordStar Conversion:
===========================
A. Strips all nulls (Hex value: 00)
B. Replaces hard carriage returns with soft ones, except when:
1. the first character of the following line is a space or tab or
another <CR>, or if the next line starts with a period.
2. the first character of the current line is a period or <CR>.
3. The ..HARDEN flag has been turned on, and ..SOFTEN not yet
received.
C. Optionally compresses multiple spaces between words to one.
D. Optionally strips leading spaces before step A or B.
WordStar->ASCII Conversion
==========================
A. Removes all high bits.
B. Throws away control characters, except CR, TAB, and LF.
C. Optionally expands tabs to 5 spaces.
D. Optionally strips lines that start with a period.
IF YOU LIKE WSASCII...
======================
WSASCII is user-supported software. If you like it, please send $10
(each user) to the author:
Brian Raub
14 Rolling Road
Overbrook Hills, PA 19151
Source code (TURBO PASCAL) is available for $25, on a DOS 2.1 diskette,
shipping included.